package com.lzs.bootsafety.business.sys.mapper;

import com.lzs.bootsafety.business.sys.entity.SysUserRole;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface SysUserRoleMapper {
    /**
     * 批量添加用户角色
     * @param sysUserRoles
     * @return
     */
    int insertUserRole(List<SysUserRole> sysUserRoles);

    /**
     * 根据userId删除关联角色
     * @param userId
     * @return
     */
    int deleteUserRoleByUserId(List<Long> userId);

    int deleteByPrimaryKey(Long id);

    int insert(SysUserRole record);

    int insertSelective(SysUserRole record);

    SysUserRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysUserRole record);

    int updateByPrimaryKey(SysUserRole record);
}